package com.newcapec.lesson1;

public class Demo1 {
    public static void main(String[] args) {
        Person person = new Student();
        Person person2 = new Teacher();
        Student student = new Student();
        fun1(person);
        fun1(student);

    }

    static void fun1(Person person){

    }

  /*  static void fun1(Teacher person){

    }

    static void fun1(Student person){

    }*/
}
